/**
 * 
 */
package com.cmpanyandi.elearning.utils.db.query;

/**
 * Equals query condition.
 * @author wojtek
 *
 */
public class EqualCondition extends QueryCondition {

   /**
    * Constructor with propertyName and value.
    * @param propertyName - name of parameter. 
    * @param value - value of parameter.
    */
    public EqualCondition(String propertyName, String value) {
	setPropertyName(propertyName);
	setValue(value);
    }
    /* (non-Javadoc)
     * @see com.cmpanyandi.elearning.utils.db.query.QueryCondition#getConditionText()
     */
    @Override
    public String getConditionText() {
	return getPropertyName() + " = " + Q_MARK;
    }

}
